package com.jingdianjichi.subject.domain.convert;


import com.jingdianjichi.subject.domain.entity.SubjectAnswerBO;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectBrief;
import com.jingdianjichi.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;


@Mapper
public interface BriefSubjectConverter {

    /**
     * @Description: mapstruct提供mapper接口的实现类，并自动重写其中的类型转换方法
     * @return:
     * @Author:  sky
     * @date:  2024/11/7 11:04
     */
    BriefSubjectConverter INSTANCE = Mappers.getMapper(BriefSubjectConverter.class);

    SubjectBrief convertBoToRadio(SubjectAnswerBO subjectAnswerBO);

    SubjectAnswerBO convertRadioToBo(SubjectBrief subjectBrief);

    SubjectBrief convertBoToEntity(SubjectInfoBO subjectInfoBO);
}
